<div class="row RowSpace" style="margin-bottom:20px;">
  <div class="LableDiv" style="width:50px;"><Btn class="BtnSave" value="保存" ng-click="btnSave()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn value="放弃" ng-click="btnCancel()"></Btn></div>
  <div class="LableDiv" style="width:50px;"><Btn class="BtnAdd" value="新增" ng-click="btnAdd()"></Btn></div>
  <div class="LableDiv" style="width:60px;"><Btn class="BtnDelete" value="删除" ng-click="btnDelete()"></Btn></div>
  <div class="LableDiv" style="width:50px;">
    <BtnFind DisplayName="查找" WindowTitle="工单" module="Module.MO">
      <Column type="0" width="80px" displayname="单号" valuefield="Code"></Column>
      <Column type="textbox" width="100px" displayname="物料" valuefield="ItemMaster.Name"></Column>
      <Column type="textbox" width="80px" displayname="生产批次" valuefield="LotNumber"></Column>
      <Column type="NumberBox" width="80px" displayname="生产数量" valuefield="Qty"></Column>
      <Column type="NumberBox" width="80px" displayname="上线数量" valuefield="OnlineQty"></Column>
      <Column type="textbox" width="80px" displayname="客户" valuefield="Customer"></Column>
      <Column type="Calendar" width="166px" displayname="开工日期" valuefield="StartDateTime"></Column>
      <Column type="Calendar" width="166px" displayname="完工日期" valuefield="EndDateTime"></Column>
    </BtnFind>
  </div>
  <div class="LableDiv" style="width:60px;"><Btn value="列表" ng-click="btnList()"></Btn></div>
  <PageButton module="Module.MO"></PageButton>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label IsEmpty="false">单号</Label></div>
  <div class="InputDiv"><TextBox value="Module.MO.FocusedRecord.Code" isempty="false"></TextBox></div>
  <div class="LableDiv"><Label IsEmpty="false">物料</Label></div>
  <div class="InputDiv">
  	<Refer EntityName="ItemMaster" WindowTitle="物料" value="Module.MO.FocusedRecord.ItemMaster">
      <Column type="0" width="150px" DisplayName="编码" valuefield="Code"></Column>
  		<Column type="textbox" width="150px" DisplayName="名称" valuefield="Name"></Column>
  		<Column type="dropdownlist" DisplayName="分类" width="150px" ValueField='ItemCategory' Enum="ItemCategoryEnum"></Column>
  		<Column DisplayName="规格" width="150px" ValueField="Specification"></Column>
    </Refer>
  </div>
  <div class="LableDiv"><Label>生产批次</Label></div>
  <div class="InputDiv"><TextBox value="Module.MO.FocusedRecord.LotNumber"></TextBox></div>
  <div class="LableDiv"><Label>状态</Label></div>
  <div class="InputDiv"><DropDownList value="Module.MO.FocusedRecord.Status" Enabled="false" enum="MOStatusEnum"></DropDownList></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label IsEmpty="false">生产数量</Label></div>
  <div class="InputDiv"><NumberBox value="Module.MO.FocusedRecord.Qty"></NumberBox></div>
  <div class="LableDiv"><Label>上线数量</Label></div>
  <div class="InputDiv"><NumberBox Enabled="false" value="Module.MO.FocusedRecord.OnlineQty"></NumberBox></div>
  <div class="LableDiv"><Label>累计完工量</Label></div>
  <div class="InputDiv"><NumberBox Enabled="false" value="Module.MO.FocusedRecord.TotalCompleteQty"></NumberBox></div>
  <div class="LableDiv"><Label>客户</Label></div>
  <div class="InputDiv"><TextBox value="Module.MO.FocusedRecord.Customer"></TextBox></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label IsEmpty="false">开工日期</Label></div>
  <div class="InputDiv"><Calendar value="Module.MO.FocusedRecord.StartDateTime"></Calendar></div>
  <div class="LableDiv"><Label IsEmpty="false">完工日期</Label></div>
  <div class="InputDiv"><Calendar value="Module.MO.FocusedRecord.EndDateTime"></Calendar></div>
  <div class="LableDiv"><Label>实际开工日期</Label></div>
  <div class="InputDiv"><Calendar Enabled="false" value="Module.MO.FocusedRecord.ActualStartDateTime"></Calendar></div>
  <div class="LableDiv"><Label>实际完工日期</Label></div>
  <div class="InputDiv"><Calendar Enabled="false" value="Module.MO.FocusedRecord.ActualEndDateTime"></Calendar></div>
</div>
<div class="row RowSpace">
  <div class="LableDiv"><Label>备注</Label></div>
  <div class="InputDiv" style="width:42%;height:80px;"><TextareaBox value="Module.MO.FocusedRecord.Remark"></div>
</div>